﻿using Song.Common.Tools;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace Test.Unit
{
    
    
    /// <summary>
    ///This is a test class for DateTimeExtensionsTest and is intended
    ///to contain all DateTimeExtensionsTest Unit Tests
    ///</summary>
    [TestClass()]
    public class DateTimeExtensionsTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for AddWeekdays
        ///</summary>
        [TestMethod()]
        public void AddWeekdaysTest()
        {
            DateTime date = new DateTime(); // TODO: Initialize to an appropriate value
            int days = 0; // TODO: Initialize to an appropriate value
            DateTime expected = new DateTime(); // TODO: Initialize to an appropriate value
            DateTime actual;
            actual = DateTimeExtensions.AddWeekdays(date, days);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for FirstDayOfMonth
        ///</summary>
        [TestMethod()]
        public void FirstDayOfMonthTest()
        {
            DateTime date = new DateTime(); // TODO: Initialize to an appropriate value
            DateTime expected = new DateTime(); // TODO: Initialize to an appropriate value
            DateTime actual;
            actual = DateTimeExtensions.FirstDayOfMonth(date);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetRelativeDateValue
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Song.Common.Tools.dll")]
        public void GetRelativeDateValueTest()
        {
            DateTime date = new DateTime(); // TODO: Initialize to an appropriate value
            DateTime comparedTo = new DateTime(); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = DateTimeExtensions_Accessor.GetRelativeDateValue(date, comparedTo);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for LastDayOfMonth
        ///</summary>
        [TestMethod()]
        public void LastDayOfMonthTest()
        {
            DateTime date = new DateTime(); // TODO: Initialize to an appropriate value
            DateTime expected = new DateTime(); // TODO: Initialize to an appropriate value
            DateTime actual;
            actual = DateTimeExtensions.LastDayOfMonth(date);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for SetTime
        ///</summary>
        [TestMethod()]
        public void SetTimeTest()
        {
            DateTime date = new DateTime(); // TODO: Initialize to an appropriate value
            int hour = 0; // TODO: Initialize to an appropriate value
            DateTime expected = new DateTime(); // TODO: Initialize to an appropriate value
            DateTime actual;
            actual = DateTimeExtensions.SetTime(date, hour);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for SetTime
        ///</summary>
        [TestMethod()]
        public void SetTimeTest1()
        {
            DateTime date = new DateTime(); // TODO: Initialize to an appropriate value
            int hour = 0; // TODO: Initialize to an appropriate value
            int minute = 0; // TODO: Initialize to an appropriate value
            int second = 0; // TODO: Initialize to an appropriate value
            DateTime expected = new DateTime(); // TODO: Initialize to an appropriate value
            DateTime actual;
            actual = DateTimeExtensions.SetTime(date, hour, minute, second);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for SetTime
        ///</summary>
        [TestMethod()]
        public void SetTimeTest2()
        {
            DateTime date = new DateTime(); // TODO: Initialize to an appropriate value
            int hour = 0; // TODO: Initialize to an appropriate value
            int minute = 0; // TODO: Initialize to an appropriate value
            int second = 0; // TODO: Initialize to an appropriate value
            int millisecond = 0; // TODO: Initialize to an appropriate value
            DateTime expected = new DateTime(); // TODO: Initialize to an appropriate value
            DateTime actual;
            actual = DateTimeExtensions.SetTime(date, hour, minute, second, millisecond);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for SetTime
        ///</summary>
        [TestMethod()]
        public void SetTimeTest3()
        {
            DateTime date = new DateTime(); // TODO: Initialize to an appropriate value
            int hour = 0; // TODO: Initialize to an appropriate value
            int minute = 0; // TODO: Initialize to an appropriate value
            DateTime expected = new DateTime(); // TODO: Initialize to an appropriate value
            DateTime actual;
            actual = DateTimeExtensions.SetTime(date, hour, minute);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ToRelativeDateString
        ///</summary>
        [TestMethod()]
        public void ToRelativeDateStringTest()
        {
            DateTime date = new DateTime(); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = DateTimeExtensions.ToRelativeDateString(date);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ToRelativeDateStringUtc
        ///</summary>
        [TestMethod()]
        public void ToRelativeDateStringUtcTest()
        {
            DateTime date = new DateTime(); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = DateTimeExtensions.ToRelativeDateStringUtc(date);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ToString
        ///</summary>
        [TestMethod()]
        public void ToStringTest()
        {
            Nullable<DateTime> date = new Nullable<DateTime>(); // TODO: Initialize to an appropriate value
            string format = string.Empty; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = DateTimeExtensions.ToString(date, format);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ToString
        ///</summary>
        [TestMethod()]
        public void ToStringTest1()
        {
            Nullable<DateTime> date = new Nullable<DateTime>(); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = DateTimeExtensions.ToString(date);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ToString
        ///</summary>
        [TestMethod()]
        public void ToStringTest2()
        {
            Nullable<DateTime> date = new Nullable<DateTime>(); // TODO: Initialize to an appropriate value
            IFormatProvider provider = null; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = DateTimeExtensions.ToString(date, provider);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ToString
        ///</summary>
        [TestMethod()]
        public void ToStringTest3()
        {
            Nullable<DateTime> date = new Nullable<DateTime>(); // TODO: Initialize to an appropriate value
            string format = string.Empty; // TODO: Initialize to an appropriate value
            IFormatProvider provider = null; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = DateTimeExtensions.ToString(date, format, provider);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
